package com.lzx.iteam.widget;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.lzx.iteam.R;

/**
 * 
 */
public class TextContentView extends LinearLayout {

    private TextView mTvTitle,mTvContent;

    public TextContentView(Context context) {
        super(context);
        LayoutInflater mInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
        View v = mInflater.inflate(R.layout.text_content_layout, null);
        mTvTitle = (TextView) v.findViewById(R.id.tv_title);
        mTvContent = (TextView) v.findViewById(R.id.tv_content);
        this.addView(v);

    }

    public TextContentView(Context context, AttributeSet attrs){
        super(context,attrs);

    }

    public void setTitleText(String desc){
        mTvTitle.setText(desc);
    }
    public void setContentText(String desc){
        mTvContent.setText(desc);
    }

}
